<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>dil.semantic.Scope</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "dil.semantic.Scope";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/dil.semantic.Scope.html" class="symbol">dil.semantic.Scope</a></h1>
  
<p class="sec_header">Author:</p>Aziz Köksal
<p class="sec_header">License:</p>GPL3
 <p><b>Maturity:</b> average.</p>
<dl>
<dt class="decl">class <a class="symbol _class" name="Scope" href="./htmlsrc/dil.semantic.Scope.html#L12" kind="class" beg="12" end="102">Scope</a>; <a title="Permalink to this symbol" href="#Scope" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.semantic.Scope.html#L12">#</a></dt>
<dd class="ddef">
<div class="summary">Builds a hierarchy of environments.</div>
<dl>
<dt class="decl">Scope <a class="symbol _variable" name="Scope.parent" href="./htmlsrc/dil.semantic.Scope.html#L14" kind="variable" beg="14" end="14">parent</a>; <a title="Permalink to this symbol" href="#Scope.parent" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.semantic.Scope.html#L14">#</a></dt>
<dd class="ddef">
<div class="summary">The surrounding scope, or null if this is the root scope.</div></dd>
<dt class="decl">ScopeSymbol <a class="symbol _variable" name="Scope.symbol" href="./htmlsrc/dil.semantic.Scope.html#L16" kind="variable" beg="16" end="16">symbol</a>; <a title="Permalink to this symbol" href="#Scope.symbol" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.semantic.Scope.html#L16">#</a></dt>
<dd class="ddef">
<div class="summary">The current symbol with the symbol table.</div></dd>
<dt class="decl"><a class="symbol _ctor" name="Scope.this" href="./htmlsrc/dil.semantic.Scope.html#L18" kind="ctor" beg="18" end="22">this</a><span class="params">(Scope <em>parent</em>, ScopeSymbol <em>symbol</em>)</span>; <a title="Permalink to this symbol" href="#Scope.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.semantic.Scope.html#L18">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">Symbol <a class="symbol _function" name="Scope.lookup" href="./htmlsrc/dil.semantic.Scope.html#L27" kind="function" beg="27" end="30">lookup</a><span class="params">(Identifier* <em>name</em>)</span>; <a title="Permalink to this symbol" href="#Scope.lookup" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.semantic.Scope.html#L27">#</a></dt>
<dd class="ddef">
<div class="summary">Find a symbol in this scope.</div>
<p class="sec_header">Params:</p>
<table class="params">
<tr><td><em>name</em></td><td>the name of the symbol.</td></tr></table></dd>
<dt class="decl">Symbol <a class="symbol _function" name="Scope.search" href="./htmlsrc/dil.semantic.Scope.html#L35" kind="function" beg="35" end="45">search</a><span class="params">(Identifier* <em>name</em>)</span>; <a title="Permalink to this symbol" href="#Scope.search" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.semantic.Scope.html#L35">#</a></dt>
<dd class="ddef">
<div class="summary">Searches for a symbol in this scope and all enclosing scopes.</div>
<p class="sec_header">Params:</p>
<table class="params">
<tr><td><em>name</em></td><td>the name of the symbol.</td></tr></table></dd>
<dt class="decl">Symbol <a class="symbol _function" name="Scope.search:2" href="./htmlsrc/dil.semantic.Scope.html#L51" kind="function" beg="51" end="61">search</a><span class="params">(Identifier* <em>name</em>, Symbol <em>ignoreSymbol</em>)</span>; <a title="Permalink to this symbol" href="#Scope.search:2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.semantic.Scope.html#L51">#</a></dt>
<dd class="ddef">
<div class="summary">Searches for a symbol in this scope and all enclosing scopes.</div>
<p class="sec_header">Params:</p>
<table class="params">
<tr><td><em>name</em></td><td>the name of the symbol.</td></tr>
<tr><td><em>ignoreSymbol</em></td><td>the symbol that must be skipped.</td></tr></table></dd>
<dt class="decl">Scope <a class="symbol _function" name="Scope.enter" href="./htmlsrc/dil.semantic.Scope.html#L64" kind="function" beg="64" end="67">enter</a><span class="params">(ScopeSymbol <em>symbol</em>)</span>; <a title="Permalink to this symbol" href="#Scope.enter" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.semantic.Scope.html#L64">#</a></dt>
<dd class="ddef">
<div class="summary">Create a new inner scope and return that.</div></dd>
<dt class="decl">Scope <a class="symbol _function" name="Scope.exit" href="./htmlsrc/dil.semantic.Scope.html#L70" kind="function" beg="70" end="75">exit</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Scope.exit" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.semantic.Scope.html#L70">#</a></dt>
<dd class="ddef">
<div class="summary">Destroy this scope and return the outer scope.</div></dd>
<dt class="decl">Scope <a class="symbol _function" name="Scope.classScope" href="./htmlsrc/dil.semantic.Scope.html#L78" kind="function" beg="78" end="88">classScope</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Scope.classScope" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.semantic.Scope.html#L78">#</a></dt>
<dd class="ddef">
<div class="summary">Search for the enclosing Class scope.</div></dd>
<dt class="decl">Scope <a class="symbol _function" name="Scope.moduleScope" href="./htmlsrc/dil.semantic.Scope.html#L91" kind="function" beg="91" end="101">moduleScope</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Scope.moduleScope" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.semantic.Scope.html#L91">#</a></dt>
<dd class="ddef">
<div class="summary">Search for the enclosing Module scope.</div></dd></dl></dd></dl>
</div>
<div id="footer">
  <p>Copyright © 2007-2008, Aziz Köksal. All rights reserved.</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:12:57 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>